public class Text {
    public static void main(String[] args) {
        TextHeap textHeap = new TextHeap();
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        textHeap.initHeap(array);
        textHeap.createHeap();
        textHeap.offer(80);
        int peek = textHeap.peek();
        System.out.println("堆顶元素为：" + peek);
        System.out.println("dddadasdad");
    }
}
